day=17
while [ $day -le 80 ]
do
 datestr=`date "-d $day days ago" +%Y-%m-%d`
 mysql -uroot -ppadlogdb -h10.133.4.80 -e "INSERT IGNORE INTO paddata.logparsedone (statdate,updatetime,serverkey)VALUES('$datestr',NOW(),'10.134.131.213');"
 ((day+=1))
done
